package com.xintonghua.bussiness.bean;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by liqi on 2018/3/26.
 *
 */

public class SubmitLogBean implements Serializable{


    /**
     * itemDetails : [{"id":"1","productId":"3","productName":"洗发水","amount":"1"}]
     * person : 小张
     * servicePersonalId : 2
     * project : 全身护理
     * projectId : 1
     * serviceItemId : 1
     */
    private String person;
    private String servicePersonalId;
    private String project;
    private String projectId;
    private String serviceItemId;
    private List<ItemDetailsBean> itemDetails;

    @Override
    public String toString() {
        return "SubmitLogBean{" +
                "person='" + person + '\'' +
                ", servicePersonalId='" + servicePersonalId + '\'' +
                ", project='" + project + '\'' +
                ", projectId='" + projectId + '\'' +
                ", serviceItemId='" + serviceItemId + '\'' +
                ", itemDetails=" + itemDetails +
                '}';
    }

    public SubmitLogBean()
    {
        itemDetails=new ArrayList<>();

    }


    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getServicePersonalId() {
        return servicePersonalId;
    }

    public void setServicePersonalId(String servicePersonalId) {
        this.servicePersonalId = servicePersonalId;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getServiceItemId() {
        return serviceItemId;
    }

    public void setServiceItemId(String serviceItemId) {
        this.serviceItemId = serviceItemId;
    }

    public List<ItemDetailsBean> getItemDetails() {
        return itemDetails;
    }

    public void setItemDetails(List<ItemDetailsBean> itemDetails) {
        this.itemDetails = itemDetails;
    }

    public static class ItemDetailsBean implements Serializable{
        /**
         * id : 1
         * productId : 3
         * productName : 洗发水
         * amount : 1
         */

        private String id;
        private String productId;
        private String productName;
        private String amount;

        private String price;

        @Override
        public String toString() {
            return "ItemDetailsBean{" +
                    "id='" + id + '\'' +
                    ", productId='" + productId + '\'' +
                    ", productName='" + productName + '\'' +
                    ", amount='" + amount + '\'' +
                    '}';
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }
    }
}
